// import { tr } from "element-plus/es/locale";
import { defineStore } from "pinia";
const showStatusStore = defineStore("storeId", {
  // 推荐使用 完整类型推断的箭头函数
  state: () => {
    return {
      // 所有这些属性都将自动推断其类型
      loginWStatus: false,
      dialogVisible: false, //展示弹框
      myPage: "", //我处于登录还是注册
      myFrom: {
        //存储用户手机号，注册登录页面切换同步获取
        phone: "",
      },
    };
  },
  actions: {
    changeDialogVisible(data: boolean) {
      this.dialogVisible = data;
    },
    changemyPage(data: string) {
      this.myPage = data;
    },
  },
});
export default showStatusStore;
